package com.brid.service;

import com.brid.dao.UserDao;
import com.brid.domain.dto.UserDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 司军强
 * @Date：2020/3/10 23:11
 * @Description:
 */
@Slf4j
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    /**
     * 保存用户的信息
     *
     * @param userDTO
     */
    @Override
    public void addUser(UserDTO userDTO) {
        userDao.saveUserInfo(userDTO);
        log.info("如果答应出来说明插入成功");
    }
}
